<table class="latest" cellspacing="0">
    <tbody>
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Order ID:</td>
            <td style="padding-left: 10px;">{$order.id|ordernum} <small>[<a href="/admin/shopreports/?pdf=true&oid={$order.id}" class="admin">receipt</a>]</small></td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Created:</td>
            <td style="padding-left: 10px;">{$order.created|date_format:'%Y-%m-%d %H:%M:%S'}</td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Created By:</td>
            <td style="padding-left: 10px;">
                <p>
                    {$order.name|default:'n/a'}<br />
                    <b>mail:</b> <a href="mailto:{$order.mail}">{$order.mail|default:'n/a'}</a><br />
                    <b>tel:</b> {$order.tel|default:'n/a'}
                </p>
            </td>
        </tr>                
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Paid:</td>
            <td style="padding-left: 10px;">
                {if $order.payed == 't'}Yes (TID: {$order.tid|default:'n/a'}){else}No{/if}
            </td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Voucher Sent:</td>
            <td style="padding-left: 10px;">
                {if $order.notified == 't'}Yes{else}No{/if}
            </td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Valid From:</td>
            <td style="padding-left: 10px;">
                {$order.term|date_format:'%Y-%m-%d'}
            </td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Items:</td>
            <td style="padding-left: 10px;">
                <p>
                    {foreach from=$order.items item=article name=articles}                    
                        {$smarty.foreach.articles.index+1}. {$article.name} (Adults: {$article.quant1}{if $article.quant2}; Children: {$article.quant2};{/if} &mdash; <strong>Sum:</strong> {$article.price_adults*$article.quant1+$article.price_kids*$article.quant2|currency}&nbsp;&euro;) 
                        {if !$smarty.foreach.articles.last}<br />{/if}
                    {foreachelse}
                    No Items in Order
                    {/foreach}
                </p>
            </td>
        </tr>
        
        <tr class="{cycle values="shade,noshade"}">
            <td align="right" width="150">Total Sum:</td>
            <td style="padding-left: 10px;">
                <strong>{$order.price|default:'0'|currency}&nbsp;&euro;</strong>
            </td>
        </tr>
    </tbody>
</table>